/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ejercicio.practica3;

/**
 *
 * @author manolo
 */
public class UsaHilo {
    
    public static void main(String[] args) throws InterruptedException{
        Hilo a = new Hilo(true);
        Hilo b = new Hilo(false);
        
        a.start();
        b.start();
        a.join();
        b.join();
    }
    
}
